#include<iostream>
int main() {
	int a, b, c;
	std::cin >> a >> b;

	std::cout << a + b << ' '<<a * b << std::endl;
	system("pause");
	return 0;
 }